#ifndef CLIENT_TEST_H
#define CLIENT_TEST_H

#include <QObject>
#include "nr_net_client.h"

class client_test : 
    public QObject , 
    public nr_net_reply_delegate ,
    public nr_net_client_data_delegate
{
public:
    client_test(QObject *parent);
    virtual ~client_test(void);

    void run();

    void login();

    void get_items();

    virtual void on_error(nr_error_t error);

    virtual void on_reply(nr_object &reply);

    virtual nr_error_t on_receive_data(nr_data *data);

    virtual nr_error_t on_receive_event(nr_event *evt);

private:
    nr_net_client m_client;
};

#endif